package com.kingdee.eas.ec.garden.invite.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.eas.ec.garden.invite.GaPurInviteBillCollection;
import java.util.HashMap;
import com.kingdee.bos.metadata.entity.SelectorItemCollection;
import com.kingdee.eas.framework.CoreBaseCollection;
import com.kingdee.eas.framework.CoreBillBaseCollection;
import com.kingdee.eas.framework.CoreBaseInfo;
import com.kingdee.eas.framework.BillBaseCollection;
import com.kingdee.eas.ec.garden.invite.GaPurInviteBillInfo;
import com.kingdee.eas.ec.basedata.BaseBillCollection;
import com.kingdee.eas.framework.ObjectBaseCollection;
import java.util.List;
import com.kingdee.eas.ec.garden.invite.BaseInviteBillCollection;



public abstract class AbstractGaPurInviteBillControllerBean extends BaseInviteBillControllerBean implements GaPurInviteBillController
{
    protected AbstractGaPurInviteBillControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("2EB9F15F");
    }

    public GaPurInviteBillInfo getGaPurInviteBillInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("5549f75f-4f45-4199-9cf0-e718b6185e8b"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            GaPurInviteBillInfo retValue = (GaPurInviteBillInfo)_getValue(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk);
    }

    public GaPurInviteBillInfo getGaPurInviteBillInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("c2981f34-0502-4a3f-8db5-ff68e30638b7"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            GaPurInviteBillInfo retValue = (GaPurInviteBillInfo)_getValue(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk, selector);
    }

    public GaPurInviteBillInfo getGaPurInviteBillInfo(Context ctx, String oql) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("e94f3c96-b591-4416-82b6-01137b91a6cf"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            GaPurInviteBillInfo retValue = (GaPurInviteBillInfo)_getValue(ctx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
    {
        return super._getValue(ctx, oql);
    }

    public GaPurInviteBillCollection getGaPurInviteBillCollection(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("a3895fe7-83d5-46d0-b153-0a99981ca18f"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            GaPurInviteBillCollection retValue = (GaPurInviteBillCollection)_getCollection(ctx, svcCtx);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
    {
        return super._getCollection(ctx, svcCtx);
    }

    public GaPurInviteBillCollection getGaPurInviteBillCollection(Context ctx, EntityViewInfo view) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("a34c8ec4-9d2c-48e4-9c28-003900e5a044"), new Object[]{ctx, view});
            invokeServiceBefore(svcCtx);
            GaPurInviteBillCollection retValue = (GaPurInviteBillCollection)_getCollection(ctx, svcCtx, view);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, view);
    }

    public GaPurInviteBillCollection getGaPurInviteBillCollection(Context ctx, String oql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("467fd351-0ab6-4199-9c1d-94451574e0cb"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            GaPurInviteBillCollection retValue = (GaPurInviteBillCollection)_getCollection(ctx, svcCtx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, oql);
    }

    public HashMap getSupplierPurchaseInfo(Context ctx, List idList) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("8b618dbe-57fd-4640-834e-863336ea19ba"), new Object[]{ctx, idList});
            invokeServiceBefore(svcCtx);
            HashMap retValue = (HashMap)_getSupplierPurchaseInfo(ctx, idList);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract HashMap _getSupplierPurchaseInfo(Context ctx, List idList) throws BOSException, EASBizException;

    public BaseInviteBillCollection getBaseInviteBillCollection (Context ctx) throws BOSException
    {
    	return (BaseInviteBillCollection)(getGaPurInviteBillCollection(ctx).cast(BaseInviteBillCollection.class));
    }
    public BaseInviteBillCollection getBaseInviteBillCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BaseInviteBillCollection)(getGaPurInviteBillCollection(ctx, view).cast(BaseInviteBillCollection.class));
    }
    public BaseInviteBillCollection getBaseInviteBillCollection (Context ctx, String oql) throws BOSException
    {
    	return (BaseInviteBillCollection)(getGaPurInviteBillCollection(ctx, oql).cast(BaseInviteBillCollection.class));
    }
    public BaseBillCollection getBaseBillCollection (Context ctx) throws BOSException
    {
    	return (BaseBillCollection)(getGaPurInviteBillCollection(ctx).cast(BaseBillCollection.class));
    }
    public BaseBillCollection getBaseBillCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BaseBillCollection)(getGaPurInviteBillCollection(ctx, view).cast(BaseBillCollection.class));
    }
    public BaseBillCollection getBaseBillCollection (Context ctx, String oql) throws BOSException
    {
    	return (BaseBillCollection)(getGaPurInviteBillCollection(ctx, oql).cast(BaseBillCollection.class));
    }
    public BillBaseCollection getBillBaseCollection (Context ctx) throws BOSException
    {
    	return (BillBaseCollection)(getGaPurInviteBillCollection(ctx).cast(BillBaseCollection.class));
    }
    public BillBaseCollection getBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BillBaseCollection)(getGaPurInviteBillCollection(ctx, view).cast(BillBaseCollection.class));
    }
    public BillBaseCollection getBillBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (BillBaseCollection)(getGaPurInviteBillCollection(ctx, oql).cast(BillBaseCollection.class));
    }
    public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBillBaseCollection)(getGaPurInviteBillCollection(ctx).cast(CoreBillBaseCollection.class));
    }
    public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBillBaseCollection)(getGaPurInviteBillCollection(ctx, view).cast(CoreBillBaseCollection.class));
    }
    public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBillBaseCollection)(getGaPurInviteBillCollection(ctx, oql).cast(CoreBillBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException
    {
    	return (ObjectBaseCollection)(getGaPurInviteBillCollection(ctx).cast(ObjectBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (ObjectBaseCollection)(getGaPurInviteBillCollection(ctx, view).cast(ObjectBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (ObjectBaseCollection)(getGaPurInviteBillCollection(ctx, oql).cast(ObjectBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBaseCollection)(getGaPurInviteBillCollection(ctx).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBaseCollection)(getGaPurInviteBillCollection(ctx, view).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBaseCollection)(getGaPurInviteBillCollection(ctx, oql).cast(CoreBaseCollection.class));
    }
}